


// 后端微服务模块前缀 
// "http://merak-api.test.com" 
//  "https://sscn.tianxuan.work";

const config = {
    // "localhost": "https://sscn.tianxuan.work",//本机环境 API host
    "localhost":"http://merak-api.test.com",//本机环境 API host
    "merak.test.com": "http://merak-api.test.com",//200 环境 API host
    // "merak.test.com": "https://sscn.tianxuan.work",//200 环境 API host
    "cn.tianxuan.work": "https://sscn.tianxuan.work", // CN正式线 API host
    "ru.tianxuan.work": "https://ssru.tianxuan.work", // RU正式线 API host
    "merak.211.com": "http://merak-api.211.com:83" // 田哥测试地址
   
}

//获取 url hostName 匹配前缀 ，如果获取不到返回测试 API
const getMathEnv = () => {
    let curEnvHost = window.location.hostname;
    return config[curEnvHost] || config["merak.test.com"]
}

 
export const PORT1 = getMathEnv();
export const PORT2 = "";


